package com.liuhaoqi.raletiveblog.mapper;

import com.liuhaoqi.raletiveblog.entity.Resource;
import com.liuhaoqi.raletiveblog.result.business.PageResult.ResourcePageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResourceMapper {
    int addResource(Resource resource);
    int updateResourceByResourceId(Resource resource);
    int deleteResourceByResourceId(Long resourceId);
    List<ResourcePageResult> getResourceListMang(@Param("start") int start, @Param("end") int end, @Param("pagesize") int pagesize);
    List<Resource> getResourceByTypeList(String resourceType);
    List<Resource> getResourceList();
    int deleteByPrimaryKey(Long resourceid);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Long resourceid);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);
}